# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=mauikit-texteditor
pkgver=2.2.2
pkgrel=1
pkgdesc='MauiKit Text Editor components'
url='https://mauikit.org/'
arch=(loong64 x86_64)
license=(LGPL)
depends=(mauikit syntax-highlighting)
makedepends=(extra-cmake-modules kio)
source=(https://download.kde.org/stable/maui/mauikit-texeditor/$pkgver/$pkgname-$pkgver.tar.xz) # Typo!
#source=(https://download.kde.org/stable/maui/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz)
sha256sums=('8f7ddfde097b8aded0ae65bf792a3478eec48685798805850838c6647f07163d')

build() {
  cmake -B build -S $pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
